package com.elecbook.content.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elecbook.content.model.dto.ContributePQuery;
import com.elecbook.content.model.dto.ContributePageRequestDTO;
import com.elecbook.content.model.po.Contribute;
import org.apache.ibatis.annotations.Param;

public interface ContributeMapper extends BaseMapper<Contribute> {

    /**
     * 用户分页查询
     * @param page
     * @param pageDTO
     * @return
     */
    Page<Contribute> selectPageVO(Page<Contribute> page, @Param("pageDTO") ContributePageRequestDTO pageDTO);

    /**
     * 管理员，分页查询
     * @param page
     * @param query
     * @return
     */
    Page<Contribute> selectPageEntity(IPage<Contribute> page, @Param("query") ContributePQuery query);

}
